package vip.websky.project.module.entity.user;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 系统用户-权限关联表
 * </p>
 * @Author YangYong E-mail:yang2048@qq.com
 * @Create 2017/9/24-19:26
 **/
@Data
@TableName("k_user_permission")
public class UserPermission extends Model<UserPermission> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 用户id
     */
    @TableField(value="USER_ID")
    private Long userId;

    /**
     * 权限id
     */
    @TableField(value="PERMISSION_ID")
    private Long permissionId;

    /**
     * 权限标识
     */
    @TableField(value="PERMISSION_CODE")
    private String permissionCode;

    /**
     * 权限类型
     */
    @TableField(value="PERMISSION_TYPE")
    private String permissionType;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
